package cn.shujuhai.common.pluging.exception;

import lombok.Getter;

@Getter
public enum ExceptionMenu {
    //400
    BAd_REQUEST("400", "请求数据格式不正确"),
    UNAUTHORIZED("401", "登录凭证过期"),
    FORBIDDEN("403", "没有访问权限"),
    NOT_FOUND("404", "请求的资源找不到"),
    //500
    INTERNAL_SERVER_ERROR("500", "服务器内部错误"),
    SERVICE_UNAVAILABLE("503", "服务器正忙，请稍后再试"),
    UNKNOWN("10001", "未知错误");

    private final String code;
    private final String msg;

    ExceptionMenu(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
